function init() {
	if (!init.tipdiv) {
		init.tipdiv = document.createElement('div');
		init.tipdiv.id = 'tipDiv';
		document.body.appendChild(init.tipdiv);
	}
}

var tooltips = {
	timer: null,
	tipID: 'tipDiv',
	showdelay: 500,
	hidedelay: 200,
	showorhidediv: function(visiable) {
		var tipdiv = document.getElementById(this.tipID);
		if (!tipdiv) {
			tipdiv = document.createElement('div');
			tipdiv.id = this.tipID;
			document.body.appendChild(tipdiv);
		}
		if (visiable) {
			tipdiv.style.visibility = 'visible';
		} else {
			tipdiv.style.visibility = 'hidden';
		}
	},

	showtips: function(e, msg) {
		var clientx;
		var clienty;
		if (!e) {
			e = window.event;

		} else {

			clientx = e.clientX + document.body.scrollLeft;
			clienty = e.clientY + document.body.scrollTop;
		}
		var tipdiv = document.getElementById('tipDiv');
		if (!tipdiv) {
			tipdiv = document.createElement('div');
			tipdiv.id = this.tipID;
		}
		tipdiv.style.left = clientx - 40;
		tipdiv.style.top = clienty + 12;
		tipdiv.innerHTML = msg;
		this.timer = window.setTimeout('tooltips.showorhidediv(true)', this.showdelay);
		if (e.stopPropagation) {
			e.stopPropagation();
		} else {
			e.cancelBubble = true;
		}
		if (e.preventDefault) {
			e.preventDefault();
		} else {
			e.returnValue = false;
		}
	},
	hidetips: function(e) {
		if (!e) {
			e = window.event;
		}
		if (this.timer) {
			clearTimeout(this.timer);
			this.timer = 0;
		}
		tooltips.showorhidediv(false);
	}
};